package com.coin.liu.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class commonController {
    @RequestMapping(value = {"/","/login","/login.html"})
    public String tologin(){
        return "login";

    }
    @RequestMapping("/page_{page}")
    public String page(@PathVariable("page") String page){
        return page; //跳转到模板引擎上
    }
}
